<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class Order extends TimeModel
{

    protected $name = "order";

    protected $deleteTime = false;

    protected $type=[
        'pay_time'=>'timestamp:Y-m-d',
        'create_time'=>'timestamp:Y-m-d',
    ];

    public function getMerchantStatusList()
    {
        return ['0'=>'待反馈','1'=>'已反馈',];
    }
    public function goodsList()
    {
        return $this->hasMany(OrderGoods::class,'order_id','id');
    }

}
